home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / events / CollectionEvent.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  44 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import mx.core.mx_internal;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class CollectionEvent extends Event
  9.    {
  10.       
  11.       mx_internal static const VERSION:String = "3.0.0.0";
  12.       
  13.       public static const COLLECTION_CHANGE:String = "collectionChange";
  14.        
  15.       
  16.       public var kind:String;
  17.       
  18.       public var location:int;
  19.       
  20.       public var items:Array;
  21.       
  22.       public var oldLocation:int;
  23.       
  24.       public function CollectionEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:String = null, param5:int = -1, param6:int = -1, param7:Array = null)
  25.       {
  26.          super(param1,param2,param3);
  27.          this.kind = param4;
  28.          this.location = param5;
  29.          this.oldLocation = param6;
  30.          this.items = !!param7 ? param7 : [];
  31.       }
  32.       
  33.       override public function toString() : String
  34.       {
  35.          return formatToString("CollectionEvent","kind","location","oldLocation","type","bubbles","cancelable","eventPhase");
  36.       }
  37.       
  38.       override public function clone() : Event
  39.       {
  40.          return new CollectionEvent(type,bubbles,cancelable,kind,location,oldLocation,items);
  41.       }
  42.    }
  43. }
  44.